Carbon


PBHMapNameSync

Header: Files.h Carbon status: Supported

Determines the user ID or group ID from a user or group name.

OSErr PBHMapNameSync (
    HParmBlkPtr paramBlock
);
Parameter descriptions
paramBlock

A pointer to an objParam variant of the HFS parameter block.

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

VERSION NOTES

Because user and group IDs are interchangeable under AFP 2.1 and later volumes, you might need to set the ioObjType field to determine which database (user or group) to search first. If both a user and a group have the same name, this field determines which kind of ID you receive.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)